package com.freemalll.merchant.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.freemalll.merchant.domain.dto.MerBackCardDto;
import com.freemalll.merchant.domain.entity.MerBankCard;
import com.freemalll.merchant.mapper.MerBankCardMapper;
import com.freemalll.merchant.service.MerBankCardService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 服务层实现。
 *
 * @author songshixiong
 * @since 2025-05-26
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MerBankCardServiceImpl extends ServiceImpl<MerBankCardMapper, MerBankCard> implements MerBankCardService {

    @Override
    public List<MerBackCardDto> listByMerId(String merId) {
        return baseMapper.listByMerId(merId);
    }
}
